<?php defined('SYSPATH') or die('No direct script access.');

class Controller_Contact extends Controller_Template {

	public $template = 'contact';

	public function action_index()
	{
		 $this->template->header = View::factory('template/header');
		 $this->template->body = View::factory('template/content');
		 $this->template->links = View::factory('template/links');
		 $this->template->shoutbox = View::factory('template/shoutbox');
		 $this->template->footer = View::factory('template/footer');
		 
		$errors = array();
		
		if(HTTP_Request::POST == $this->request->method())
		{
			$name = $_POST['name'];
			$lastName = $_POST['last_name'];
			$email = $_POST['email'];
			$content = $_POST['content'];
			
			$data = $name.' '.$lastName.' '.$email.' '.$content;
			$this->template->errors = $data;
		}
	}
	

}
